const mongoose = require("mongoose");
//车辆信息数据库
const schema = new mongoose.Schema(
  {
    name: { type: String },
    items: [
      {
        image: { type: String },
        url: { type: String },
      },
      
    ],
    //mongoose.Schema.Types.ObjectId
  },
  {
    timestamps: true,
  }
);

module.exports = mongoose.model("Ad", schema);
